home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 14129 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  858 b 

  1. Path: voyager.iii.org.tw!sandforr
  2. From: sandforr@mcnet.marietta.edu (Robert Sandford)
  3. Newsgroups: comp.lang.c
  4. Subject: Connecting a process to a tty
  5. Date: 12 Apr 1996 05:00:43 GMT
  6. Organization: Marietta College
  7. Message-ID: <slrn44mrp31.ekr.sandforr@mcnet.marietta.edu>
  8. NNTP-Posting-Host: shts.seed.net.tw
  9. X-Newsreader: slrn (0.8.3)
  10.  
  11.  I been working on a shell that a user telnets into through a port number for example:
  12.  
  13.  telnet mycomputer 2150
  14.  
  15.  Once the user logs in they have a shell somewhat like csh. The problem I am having is
  16.  starting a process that would connect to a tty so they can use write, talk and other
  17.  programs that use pseudo-ttys. I can disconnect a process from a tty by using ioctl
  18.  function but I am stumped on connecting or reconnecting a process back to a tty.
  19.  
  20.   Any help would be greatly appreciated.
  21.  
  22.   Thanks
  23.   Robert Sandford
  24.  
  25.  
  26.